VT-d/qinval: eliminate redundant locking
authorJan Beulich <jbeulich@suse.com>
Wed, 25 Jun 2014 12:42:15 +0000 (14:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Jun 2014 12:42:15 +0000 (14:42 +0200)
commitad1546260422378ff4385b7db91a2c8ffa1dca29
tree1dae0c4279693894576e17970c916518d8824a43
parentdab11417da4e21f43625f4ebbb68158f07003d04
VT-d/qinval: eliminate redundant locking

The qinval-specific lock would only ever get used with the IOMMU's
register lock already held. Along with dropping the lock also drop
another unused field from struct qi_ctrl.

Furthermore the gen_*_dsc() helpers become pretty pointless with the
lock dropped - being each used only in a single place, simply fold
them into their callers.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/iommu.h
xen/drivers/passthrough/vtd/qinval.c